var currentIndexTemp = 0;
var indexTemp = 0;
var frame,nf,departmentId;
efform_onload = function ()
{
}; 

function fundiv(currentIndex,index){  
	currentIndexTemp = currentIndex;
	indexTemp = index;
	nf = $("#inqu_status-0-fdNF").val();
	departmentId = $("#inqu_status-0-fdDepartmentId").val();
	if(index ==0)
	{  
		var frame = frames[0];
		frame.src = "DispatchAction.do?efFormEname=ZMCK31"+"&nf="+nf+"&departmentId="+departmentId+"&flag=1";
		efform.setStatus(0, "正在加载...");
	}else if(index ==1)
	{ 
		var frame = frames[1];
		frame.src = "DispatchAction.do?efFormEname=ZMCK32" +"&nf="+nf+"&departmentId="+departmentId+"&flag=1";
		efform.setStatus(0, "正在加载...");
	}else if(index ==2)
	{ 
		var frame = frames[2];
		frame.src = "DispatchAction.do?efFormEname=ZMCK33"+"&nf="+nf+"&departmentId="+departmentId+"&flag=1";
		efform.setStatus(0, "正在加载...");
	}else if(index ==3)
	{ 
		var frame = frames[3];
		frame.src = "DispatchAction.do?efFormEname=ZMCK34"+"&nf="+nf+"&departmentId="+departmentId+"&flag=1";
		efform.setStatus(0, "正在加载...");
	}else if(index ==4)
	{ 
		var frame = frames[4];
		frame.src = "DispatchAction.do?efFormEname=ZMCK35"+"&nf="+nf+"&departmentId="+departmentId+"&flag=1";
		efform.setStatus(0, "正在加载...");
	}
};

button_query_onclick = function() {
	frame = 0;
	nf = $("#inqu_status-0-fdNF").val();
	departmentId = $("#inqu_status-0-fdDepartmentId").val();
	var info = getDetail("ef_region_inqu", "inqu_status");
	if (null != info) {
		if (frame.src == "DispatchAction.do?efFormEname=ZMCK31&flag=1"
				|| indexTemp == '0') {
			fundiv(0, 0);
		}
		if (frame.src == "DispatchAction.do?efFormEname=ZMCK32&flag=1"
				|| indexTemp == '1') {
			fundiv(1, 1);
		}
		if (frame.src == "DispatchAction.do?efFormEname=ZMCK33&flag=1"
				|| indexTemp == '2') {
			fundiv(2, 2);
		}
		if (frame.src == "DispatchAction.do?efFormEname=ZMCK34&flag=1"
				|| indexTemp == '3') {
			fundiv(3, 3);
		}
		if (frame.src == "DispatchAction.do?efFormEname=ZMCK35&flag=1"
				|| indexTemp == '4') {
			fundiv(4, 4);
		}
	} 
};
